package com.claimSettlement.service.impl;

import com.claimSettlement.mapper.UserMapper;
import com.claimSettlement.pojo.SysUser;
import com.claimSettlement.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 *菜单Service层接口
 *宁杰
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    public SysUser getUser(String account, String password) {
        return userMapper.getUser(account,password);
    }

    public List<SysUser> getUserAll() {
        return userMapper.getUserAll();
    }
    public List<SysUser> getSettAndOneUser() {
        return userMapper.getSettAndOneUser();
    }

    public int updUserState(int userId) {
        return userMapper.updUserState(userId);
    }

}
